% latex table generated in R 4.4.0 by xtable 1.8-4 package
% Thu Apr 10 09:22:37 2025
\begin{table}[ht]
\centering
\scalebox{0.55}{
\begin{tabular}{rrrrrrrrrrrrr}
  \hline
 & Sestak '10 & Specter '10 & Clinton '16 & Sanders '16 & Fetterman '16 & Sestak '16 & McGinty '16 & Sanders '20 & Biden '20 & Fetterman '22 & Lamb '22 & Kenyatta '22 \\ 
  \hline
Clinton '08 & \cellcolor{gray!110}0.529 & \cellcolor{gray!60}-0.533 & \cellcolor{gray!60}-0.429 & \cellcolor{gray!80}0.354 & 0.065 & 0.104 & -0.098 & 0.042 & \cellcolor{gray!30}-0.213 & \cellcolor{gray!110}0.476 & 0.094 & \cellcolor{gray!60}-0.643 \\ 
  Obama '08 & \cellcolor{gray!60}-0.533 & \cellcolor{gray!110}0.537 & \cellcolor{gray!110}0.435 & \cellcolor{gray!30}-0.356 & -0.064 & -0.102 & 0.094 & -0.040 & \cellcolor{gray!80}0.213 & \cellcolor{gray!60}-0.481 & -0.090 & \cellcolor{gray!110}0.646 \\ 
  Sestak '10 & 1.000 & \cellcolor{gray!60}-0.998 & \cellcolor{gray!60}-0.496 & \cellcolor{gray!110}0.459 & -0.035 & \cellcolor{gray!80}0.306 & -0.084 & 0.099 & \cellcolor{gray!30}-0.202 & \cellcolor{gray!110}0.504 & -0.045 & \cellcolor{gray!60}-0.575 \\ 
  Specter '10 & \cellcolor{gray!60}-0.998 & 1.000 & \cellcolor{gray!110}0.500 & \cellcolor{gray!60}-0.458 & 0.036 & \cellcolor{gray!30}-0.304 & 0.083 & -0.096 & \cellcolor{gray!80}0.202 & \cellcolor{gray!60}-0.508 & 0.047 & \cellcolor{gray!110}0.578 \\ 
  Clinton '16 & \cellcolor{gray!60}-0.496 & \cellcolor{gray!110}0.500 & 1.000 & \cellcolor{gray!60}-0.937 & -0.121 & -0.042 & 0.046 & \cellcolor{gray!60}-0.461 & \cellcolor{gray!110}0.568 & \cellcolor{gray!60}-0.552 & \cellcolor{gray!80}0.278 & \cellcolor{gray!110}0.453 \\ 
  Sanders '16 & \cellcolor{gray!110}0.459 & \cellcolor{gray!60}-0.458 & \cellcolor{gray!60}-0.937 & 1.000 & 0.147 & 0.060 & -0.079 & \cellcolor{gray!110}0.526 & \cellcolor{gray!60}-0.588 & \cellcolor{gray!110}0.493 & \cellcolor{gray!30}-0.266 & \cellcolor{gray!30}-0.395 \\ 
  Fetterman '16 & -0.035 & 0.036 & -0.121 & 0.147 & 1.000 & \cellcolor{gray!60}-0.666 & \cellcolor{gray!60}-0.487 & \cellcolor{gray!80}0.252 & \cellcolor{gray!30}-0.284 & 0.128 & 0.199 & \cellcolor{gray!30}-0.212 \\ 
  Sestak '16 & \cellcolor{gray!80}0.306 & \cellcolor{gray!30}-0.304 & -0.042 & 0.060 & \cellcolor{gray!60}-0.666 & 1.000 & -0.200 & -0.091 & 0.136 & 0.008 & -0.102 & -0.015 \\ 
  McGinty '16 & -0.084 & 0.083 & 0.046 & -0.079 & \cellcolor{gray!60}-0.487 & -0.200 & 1.000 & -0.173 & 0.151 & 0.084 & -0.144 & -0.001 \\ 
  Sanders '20 & 0.099 & -0.096 & \cellcolor{gray!60}-0.461 & \cellcolor{gray!110}0.526 & \cellcolor{gray!80}0.252 & -0.091 & -0.173 & 1.000 & \cellcolor{gray!60}-0.914 & 0.191 & \cellcolor{gray!30}-0.254 & -0.044 \\ 
  Biden '20 & \cellcolor{gray!30}-0.202 & \cellcolor{gray!80}0.202 & \cellcolor{gray!110}0.568 & \cellcolor{gray!60}-0.588 & \cellcolor{gray!30}-0.284 & 0.136 & 0.151 & \cellcolor{gray!60}-0.914 & 1.000 & \cellcolor{gray!30}-0.292 & \cellcolor{gray!80}0.231 & 0.180 \\ 
  Fetterman '22 & \cellcolor{gray!110}0.504 & \cellcolor{gray!60}-0.508 & \cellcolor{gray!60}-0.552 & \cellcolor{gray!110}0.493 & 0.128 & 0.008 & 0.084 & 0.191 & \cellcolor{gray!30}-0.292 & 1.000 & \cellcolor{gray!60}-0.483 & \cellcolor{gray!60}-0.777 \\ 
  Lamb '22 & -0.045 & 0.047 & \cellcolor{gray!80}0.278 & \cellcolor{gray!30}-0.266 & 0.199 & -0.102 & -0.144 & \cellcolor{gray!30}-0.254 & \cellcolor{gray!80}0.231 & \cellcolor{gray!60}-0.483 & 1.000 & -0.136 \\ 
  Kenyatta '22 & \cellcolor{gray!60}-0.575 & \cellcolor{gray!110}0.578 & \cellcolor{gray!110}0.453 & \cellcolor{gray!30}-0.395 & \cellcolor{gray!30}-0.212 & -0.015 & -0.001 & -0.044 & 0.180 & \cellcolor{gray!60}-0.777 & -0.136 & 1.000 \\ 
   \hline
\end{tabular}
}
\caption{Correlations of vote shares in Democratic primaries from all Pennsylvania precincts (n=8932-9265).} 
\label{f:padem}
\end{table}
